package com.spa.application.command.massagist;

import com.spa.infrastructure.util.UrlUtil;
import lombok.Data;

@Data
public class MassagistMyEditCommand {

    private String name;

    private String idCardTails;

    private String idCardFront;

    private String workPhoto;

    private String lifePhoto;

    private String qualificationCertificate;

    private String healthCertificate;

    public void setIdCardTails(String idCardTails) {
        this.idCardTails = UrlUtil.handleUrl(idCardTails, ",");
    }

    public void setIdCardFront(String idCardFront) {
        this.idCardFront = UrlUtil.handleUrl(idCardFront, ",");
    }

    public void setWorkPhoto(String workPhoto) {
        this.workPhoto = UrlUtil.handleUrl(workPhoto, ",");
    }

    public void setLifePhoto(String lifePhoto) {
        this.lifePhoto = UrlUtil.handleUrl(lifePhoto, ",");
    }

    public void setQualificationCertificate(String qualificationCertificate) {
        this.qualificationCertificate = UrlUtil.handleUrl(qualificationCertificate, ",");
    }

    public void setHealthCertificate(String healthCertificate) {
        this.healthCertificate = UrlUtil.handleUrl(healthCertificate, ",");
    }
}
